package com.itheima.springmybatisplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.springmybatisplus.pojo.Library;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public interface LibraryMapper extends BaseMapper<Library> {
    Map<String, Object> selectMapById(int id);

    Page<Library> selectPageVo(@Param("page") Page<Library> page, @Param("title") String title);
}
